﻿using EM.OA.BLL;
using EM.OA.Common;
using EM.OA.DataModel.DBModel;
using EM.OA.WebCommon.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
using System.Web;
namespace EM.OA.Portal.Models
{
	public class KnowledgeModels : BaseViewModel
	{
      		/// <summary>
		/// ID
        	/// </summary>		
		[Display(Name = "ID")]
        	public Guid KnowledgeID { get; set; }        
			/// <summary>
		/// 编号
        	/// </summary>		
		[Display(Name = "编号")]
        	public string KnowledgeCode { get; set; }        
			/// <summary>
		/// 名称
        	/// </summary>		
		[Display(Name = "名称")]
        	public string KnowledgeName { get; set; }        
			/// <summary>
		/// 标签
        	/// </summary>		
		[Display(Name = "标签")]
        	public string Tag { get; set; }        
        /// <summary>
        ///知识库类型
        /// </summary>		
        [Display(Name = "知识库类型")]
        public string DictionaryKind { get; set; }
        [Display(Name = "知识库类型")]
        public string KnowledgeKindName
        {
            get
            {
                return new DictionaryBLL().GetDicName(GlobalEnum.RootKind.KnowledgeKind.ToString(),DictionaryKind);
            }
        }
			/// <summary>
		/// 是否有附件
        	/// </summary>		
		[Display(Name = "是否有附件")]
        	public bool HaveAttachment { get; set; }        
			/// <summary>
		/// 内容
        	/// </summary>		
		[Display(Name = "内容")]
        	public string Content { get; set; }        
			/// <summary>
		/// 状态
        	/// </summary>		
		[Display(Name = "状态")]
        	public int? Status { get; set; }        
		   
	}
}